package com.springdoor.wx.api.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

public class ResultCategory implements Serializable {

    private Long groupId;
    private Long parentId;
    private String name;
    private String thumbnail;

    private List<ResultCategory> children;

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public List<ResultCategory> getChildren() {
        return children;
    }

    public void setChildren(List<ResultCategory> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("groupId", getGroupId())
                .append("parentId", getParentId())
                .append("name", getName())
                .append("thumbnail", getThumbnail())
                .append("children", getChildren())
                .toString();
    }
}
